-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLOUDP-211733 - Pipeline and build process refactoring #1427
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Julien-Ben
changed the title
Pipeline and build process refactoring
CLOUDP-211733 - Pipeline and build process refactoring
Nov 16, 2023
Julien-Ben
requested review from
irajdeep,
mircea-cosbuc,
lsierant,
slaskawi and
nammn
as code owners
November 20, 2023 13:37
Julien-Ben
force-pushed
the
refactor_pipeline
branch
from
November 22, 2023 08:27
8be62b0
to
9be2175
Compare
slaskawi
reviewed
Nov 27, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added two questions, otherwise LGTM
mircea-cosbuc
approved these changes
Nov 27, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the question about the helm-chart submodule bump.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactoring of
pipeline.py
Overview
pipeline.py
file was refactored to reduce duplication and simplify the build process.build_agent_image_ubi
,build_version_post_start_hook_image
). These shared 90% of their logic and configuration.build_and_push_image
, to handle the building and pushing of images.Key Changes
Unified Build Function:
build_and_push_image
replaced the multiple image-building functions.New Argument Building Function:
build_image_args
to define the build arguments passed to Sonar.Simplified Argument Handling:
e2e_image
,operator_image
, etc., with a genericimage
argument.image
parameter.agent-ubuntu
variant ininventory.yaml
.Unified Variant Naming:
--image-name
flag values inVALID_IMAGES_NAMES
to be consistent with values in~/.community-operator-dev/config.json
.operator
in pipeline corresponds tooperator_image
in dev config, andversion_upgrade_hook
corresponds toversion_upgrade_hook_image
. Dev images have the _image_dev prefix. No need for any explicit mapping anymore.release.json
too.-ubi
prefixes for operator and agent images and removed the logic for building Ubuntu-based images.Adjustments in E2E Tests and Makefile:
Argument Parsing Changes:
--release
flag: now, it's either added to signify a release or omitted otherwise (instead of--release true
or--release false
).Documentation Updates:
Additional Improvements:
--amend
argument is now added only for the correct architectures to prevent errors from non-existent image names.